package com.creditcmsplt;

import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.DefaultHttpClient;

public class JavaNetURLRESTFulClient {

	private static final String targetURL = "https://127.0.0.1:8011/credit/getCreditReport";

	public static void test() throws Exception{
		DefaultHttpClient httpClient = new DefaultHttpClient();
		String urlOverHttps= "https://localhost:8080/spring-security-rest-basic-auth";
		HttpGet getMethod = new HttpGet(urlOverHttps);
		CloseableHttpResponse response = httpClient.execute(getMethod);
		//assertThat(response.getStatusLine().getStatusCode(), equalTo(200));
	}
	
	public static void main(String[] args) {
		
	}
}
